package com.qingke.memo.command.memo;

import com.qingke.memo.app.MemorandumApplication;
import com.qingke.memo.command.MemoCommand;
import com.qingke.memo.pojo.Memo;
import com.qingke.memo.unit.MConsole;

public class LeaveMemo extends MemoCommand {

	public LeaveMemo(Memo memo) {
		super(memo);
	}

	@Override
	public void execute() {
		MemorandumApplication.getInstance().setMemo(null);
		MConsole.println("leave memo success");
	}

}
